/* 
 描述：定义点赞实体类，包含点赞ID、用户ID、目标类型和目标ID等核心属性 
 完成人：吴悠 
 完成时间: 2025/04/27
 */
package com.jiesenhe.qacommunity.pojo;

public class Like {
    private Integer id;
    private Integer userId;
    private Integer targetType;
    private Integer targetId;
    private String createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getTargetType() {
        return targetType;
    }

    public void setTargetType(Integer targetType) {
        this.targetType = targetType;
    }

    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Like{" +
                "id=" + id +
                ", userId=" + userId +
                ", targetType=" + targetType +
                ", targetId=" + targetId +
                ", createTime='" + createTime + '\'' +
                '}';
    }
}
